
<%@ page language="java" import="com.dps.dao.program.Programs" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="/WEB-INF/displaytag-12.tld" prefix="display" %>

<link rel="stylesheet" type="text/css" href='theme/style.css'>

<html>
  <head>  
    <title>View List of Programs</title>
  </head>

  <body>
  
  <script>
  	function closeWindow(){
  	//alert("Close Button Clicked");
  	self.close();
  	}
  </script>
  
  <display:table id="row" pagesize="10" export="true" sort="list" name="programs" class="data_table" requestURI="viewProgram.do">
   
   <display:column title="Program Id" property="programId" />
    
   <display:column title="Program Name">
   	<a href="viewContent.do?programSrcId=<%=((Programs) row).getProgramSourceId()%>&channelId=<%= request.getParameter("channelId")%>&programId=<%=((Programs) row).getProgramId()%>&parentChannelId=<%=request.getParameter("parentChannelId")%>">

   	<%=((Programs) row).getProgramName()%>
   	</a>
   </display:column>
   
  </display:table>

  <Table width="100%" border="0">
  <Tr>
  	  <Td width="100%">&nbsp;
  	  </Td>
      <Td align="right">
		  <input type="button" name="Back" value="Back" onclick="history.go(-1)" />
      </Td>
      <Td align="right">
		  <input type="button" name="Close" value="Close" onclick="closeWindow();" />
      </Td>
  </Tr>
  </Table>
  </body>
</html>
